#Boa:Dialog:AlterarData

import wx
import wx.lib.stattext
import wx.lib.masked.timectrl
import wx.lib.masked.textctrl

def create(parent):
    return AlterarData(parent)

[wxID_ALTERARDATA, wxID_ALTERARDATABITMAPBUTTONAPLICAR, 
 wxID_ALTERARDATABITMAPBUTTONCANCEL, wxID_ALTERARDATADATEPICKERCTRL1, 
 wxID_ALTERARDATAGENSTATICTEXT1, wxID_ALTERARDATAGENSTATICTEXT2, 
 wxID_ALTERARDATASTATICBOX1, wxID_ALTERARDATATIMECTRL1, 
] = [wx.NewId() for _init_ctrls in range(8)]

class AlterarData(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_ALTERARDATA, name=u'AlterarData',
              parent=prnt, pos=wx.Point(410, 237), size=wx.Size(316, 206),
              style=wx.DEFAULT_DIALOG_STYLE,
              title=u'Adiar/Adiantar Agendamento')
        self.SetClientSize(wx.Size(300, 168))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.datePickerCtrl1 = wx.DatePickerCtrl(id=wxID_ALTERARDATADATEPICKERCTRL1,
              name='datePickerCtrl1', parent=self, pos=wx.Point(40, 56),
              size=wx.Size(112, 24), style=wx.DP_SHOWCENTURY)
        self.datePickerCtrl1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticBox1 = wx.StaticBox(id=wxID_ALTERARDATASTATICBOX1,
              label=u'Selecione a nova data/hora do agendamento:',
              name='staticBox1', parent=self, pos=wx.Point(8, 8),
              size=wx.Size(280, 104), style=0)
        self.staticBox1.SetFont(wx.Font(9, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.timeCtrl1 = wx.lib.masked.timectrl.TimeCtrl(display_seconds=True,
              fmt24hr=False, id=wxID_ALTERARDATATIMECTRL1, name='timeCtrl1',
              oob_color=wx.NamedColour('Yellow'), parent=self, pos=wx.Point(184,
              56), size=wx.Size(68, 27), style=0, useFixedWidthFont=True,
              value='12:00:00 AM')
        self.timeCtrl1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))
        self.timeCtrl1.SetFormat('24HHMM')

        self.genStaticText1 = wx.lib.stattext.GenStaticText(ID=wxID_ALTERARDATAGENSTATICTEXT1,
              label=u'Data', name='genStaticText1', parent=self,
              pos=wx.Point(40, 40), size=wx.Size(31, 16), style=0)
        self.genStaticText1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.genStaticText2 = wx.lib.stattext.GenStaticText(ID=wxID_ALTERARDATAGENSTATICTEXT2,
              label=u'Hora', name='genStaticText2', parent=self,
              pos=wx.Point(184, 40), size=wx.Size(31, 16), style=0)
        self.genStaticText2.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.bitmapButtonAplicar = wx.BitmapButton(bitmap=wx.Bitmap(u"Img/Apply.png",
              wx.BITMAP_TYPE_PNG), id=wxID_ALTERARDATABITMAPBUTTONAPLICAR,
              name=u'bitmapButtonAplicar', parent=self, pos=wx.Point(48, 120),
              size=wx.Size(64, 40), style=wx.BU_AUTODRAW)

        self.bitmapButtonCancel = wx.BitmapButton(bitmap=wx.Bitmap(u"Img/Cancel.png",
              wx.BITMAP_TYPE_PNG), id=wxID_ALTERARDATABITMAPBUTTONCANCEL,
              name=u'bitmapButtonCancel', parent=self, pos=wx.Point(184, 120),
              size=wx.Size(64, 40), style=wx.BU_AUTODRAW)
        self.bitmapButtonCancel.Bind(wx.EVT_BUTTON,
              self.OnBitmapButtonCancelButton,
              id=wxID_ALTERARDATABITMAPBUTTONCANCEL)

    def __init__(self, parent):
        self._init_ctrls(parent)

    #Botao cancelar
    def OnBitmapButtonCancelButton(self, event):
        self.Close()
